<script>
export default {
	globalData:{
		findAdress:{
			longitude:0,
			latitude:0,
			location:''
			
		},
		contactList:[]
	},
	onLaunch: function() {
		// uni.$on('exit',()=>{
		// 	uni.showModal({
		// 		title:'警告',
		// 		content:'您的账号已在其他地方上线!',
		// 		showCancel:false,
		// 		success(){
		// 			uni.clearStorageSync()
		// 			uni.reLaunch({
		// 				url:'pages/start/login'
		// 			})
		// 		}
		// 	})
		// })
		uni.$on('onmessage', function(data) {
			const { msg } = data;
			if(msg.type==100){
				uni.showModal({
					title:'语音通话',
					content:'您的好友邀请您视频聊天。',
					cancelText:'拒绝',
					confirmText:'接听',
					success(ree) {
						if(res.confirm){
							this.$open('../chatFriend/livePusher?messageId='+msg)
						}
					}
				})
			}
		})
		function plusReady() {
		    plus.key.addEventListener("backbutton",function(){
		       	uni.navigateBack() || window.location.go(-1)
		       	return
		       });
		    }
		if(window.plus) {
		    plusReady();
		} else {
		    document.addEventListener('plusready', plusReady, false);
		 }
		
	},
	onShow: function() {
		
	},
	onHide: function() {}
};
</script>

<style lang="scss">
/*每个页面公共css */
/* #ifndef APP-NVUE */
// uni-page-head{
// 	padding-top: 80rpx;
	
// 	background: rgb(243, 243, 243);
// }
// .system-header{
// 	top: 80rpx;
// }
// .map-content{
// 	top: 170rpx;
// }
// .uni-page-head{
// 	top: 80rpx!important;
// }
$theme: #0297fe;
.center {
	display: flex;
	align-items: center;
	justify-content: center;
}
.h100 {
	height: 100%;
}
page,
.wrapper {
	font-size: 28rpx;
	height: 100%;
	overflow-x: hidden;
}
view {
	box-sizing: border-box;
}
.flex {
	flex: 1;
}
.fWrap {
	flex-wrap: wrap!important;
}
.colum {
	flex-direction: column;
}
.btheme {
	background-color: $theme !important;
}
.ctheme {
	color: $theme;
}
.btnBack {
	animation: btnBack 0.3s forwards;
}
.btnnoBack {
	animation: btnnoBack 0.3s forwards;
}
@keyframes btnBack {
	from {
		background: #cccccc;
	}
	to {
		background: #4b4c5e;
	}
}
@keyframes btnnoBack {
	from {
		background: #4b4c5e;
	}
	to {
		background: #cccccc;
	}
}

.nowrap {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tCenter {
	text-align: center;
}
.tRight {
	text-align: right;
}
.noBorder {
	border: none !important;
}
.space-between {
	justify-content: space-between !important;
}
.flex-end {
	justify-content: flex-end !important;
}
.flex-start {
	justify-content: flex-start;
}
.alert-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.3);
	z-index: 999;
	transition: all 0.3s;
}
.f18 {
	font-size: 18rpx;
}
.f20 {
	font-size: 24rpx;
}
.f22 {
	font-size: 22rpx;
}
.f24 {
	font-size: 24rpx;
}
.f26 {
	font-size: 26rpx;
}
.f28 {
	font-size: 28rpx;
}
.f30 {
	font-size: 30rpx;
}
.f32 {
	font-size: 32rpx;
}
.f36 {
	font-size: 36rpx;
}
.f40 {
	font-size: 40rpx;
}
.f48 {
	font-size: 48rpx;
}
.c333 {
	color: #333333;
}
.c666 {
	color: #666666;
}
.c999 {
	color: #999999;
}
.cfff {
	color: #ffffff !important;
} /* #endif */
</style>
